libxenlight: two small fixes
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Dec 2009 08:44:40 +0000 (08:44 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Dec 2009 08:44:40 +0000 (08:44 +0000)
commitf20744517f7b8186a0b5494a399aa8e6230717c7
tree4df4fa2f6d98d107e0d2cb66fc93ec9235b59ad2
parente2e6a280af4e450020c6f4e576066890dba9bf4e
libxenlight: two small fixes

- set the domid of the guest and not the one of the stubdom in the
libxl_device_model_starting returned to the user;

- check that the length of the two strings matches in
libxl_name_to_domid, otherwise we can get a match for two different
domains that have the same initial part of the name.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_utils.c